package com.cn.mmd.service;

import com.cn.mmd.model.Activity;
import com.cn.mmd.model.StudentActivity;

import java.util.List;

/**
 * Created by Administrator on 2016/7/15 0015.
 */
public interface StudentActivityService {

    /**
     * 根据name模糊查询 活动
     * @param activity
     * @return
     */
    List<Activity> selectByActivityName(Activity activity);

    /**
     * 根据id 动态修改
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(Activity record);

    /**
     * 动态添加
     * @param record
     * @return
     */
    int insertSelective(StudentActivity record);

    /**
     * 聚合学生id 活动id
     * @param studentActivity
     * @return
     */
    int countByAll(StudentActivity studentActivity);

    /**
     * 根据活动id获取单独
     * @param activityid
     * @return
     */
    Activity selectByPrimaryKey(Integer activityid);

    /**
     * 查看参加的人
     * @param
     * @return
     */
    List<StudentActivity> countById(StudentActivity studentActivity);

    /**
     * 查看此人是否已经参加
     * @param studentActivity
     * @return
     */
    StudentActivity countByIdsId(StudentActivity studentActivity);
}
